@ECHO OFF
set bat= jcms.bat
if exist %bat% del %bat%
echo @ECHO OFF >> %bat%
echo set par1=%%1%% >> %bat%
echo set b=%%cd%% >> %bat%
echo set "p=-p" >> %bat%
echo set "d=-d" >> %bat%
echo set "s=-s" >> %bat%
echo cd /d %cd% >> %bat%
echo if %%p%%==%%par1%% ( >> %bat%
echo     java -jar create.project-1.0-SNAPSHOT-jar-with-dependencies.jar %%b%% %%2%% >> %bat%
echo ) >> %bat%
echo if %%d%%==%%par1%% ( >> %bat%
echo     java -jar create.metadata4project-1.0-SNAPSHOT-jar-with-dependencies.jar %%b%% >> %bat%
echo ) >> %bat%
echo if %%s%%==%%par1%% ( >> %bat%
echo     java -jar create.crud-1.0-SNAPSHOT-jar-with-dependencies.jar %%b%% %%2%% >> %bat%
echo ) >> %bat%
echo cd /d %%b%% >> %bat%
echo please add %cd% to the environment variable(Path) to complete the installation